home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 24 / PC Gamer IT CD 24 2-2.iso / OFFICE / XLscan97 / XLScan97.exe / RCDATA / CABINET / Xvbscan.inf < prev   
Windows Setup INFormation  |  1997-07-01  |  4KB  |  144 lines

  1. [version]
  2. signature="$CHICAGO$"
  3. ;need to tell INFInstall to use ADVPACK.DLL-it implements CustomDestination
  4. AdvancedINF=2.5
  5.  
  6. [DestinationDirs] 
  7. contents=49002 
  8. InstalledLFN=49002
  9. contentsDLL=49004  
  10. INFCopy=17
  11. DLLCopy=11
  12. LNFdll=11
  13.  
  14. ;begin install logic
  15.  
  16. [DefaultInstall] 
  17. ;Win95 entry point
  18. CustomDestination=FileDest
  19. CopyFiles=contents,contentsDLL,INFCopy,DLLCopy,LNFdll
  20. AddReg=PkgFiles,GenUninstallKey,Win95UninstallKey,RenamePkgFiles
  21.  
  22. [DefaultInstall.NT]
  23. ;NT 4 entry point
  24. CustomDestination=FileDest
  25. CopyFiles=contents,contentsDLL,INFCopy,DLLCopy
  26. AddReg=PkgFiles,GenUninstallKey,NTUninstallKey,RenamePkgFiles
  27.  
  28. [contents]
  29. ;copy to Program Files\Microsoft Office\Office\Library
  30. XLScan97.xla
  31. Xvbscan.exe
  32. Readme.txt
  33.  
  34. [contentsDLL]
  35. ;copy to Program Files\Microsoft Office\Office
  36. Scanload.dll
  37.  
  38. [INFCopy]
  39. ;copy INF to Windows\INF for uninstall
  40. Xvbscan.inf
  41.  
  42. [DLLCopy]
  43. ;copy DLL to system folder
  44. Msvbvm50.dll
  45.  
  46. [LNFdll]
  47. setupapi.dll
  48. cfgmgr32.dll
  49.  
  50. [InstalledLFN]
  51. "XLSCAN97 Readme.txt"
  52.  
  53. [FileDest]
  54. 49001=TemplPathKey,7
  55. 49002=BogusRegKey,5 
  56.  
  57. 49003=TemplPathKey2,7
  58. 49004=BogusRegKey2,5
  59.  
  60. [TemplPathKey]
  61. "HKLM","SOFTWARE\Microsoft\Office\8.0\Excel\InstallRoot","Path","",""
  62. "","","","%FailMsg%",""
  63.  
  64. [BogusRegKey]
  65. "HKLM","SOFTWARE\BogusApp\BogusKey","","","%49001%\%PubDir%"
  66.  
  67. [TemplPathKey2]
  68. "HKLM","SOFTWARE\Microsoft\Office\8.0\Common\InstallRoot","OfficeBin","",""
  69. "","","","%FailMsg%",""
  70.  
  71. [BogusRegKey2]
  72. "HKLM","SOFTWARE\BogusApp\BogusKey","","","%49003%"
  73.  
  74. [PkgFiles]
  75. "HKLM","SOFTWARE\Microsoft\Office\8.0\Excel\Xvbscan","InstallDir","","%49002%"
  76.  
  77. [RenamePkgFiles]
  78. ;gives long file names 
  79. HKLM,Software\Microsoft\Windows\CurrentVersion\RenameFiles\Xvbscan,,,"%49002%" 
  80. HKLM,Software\Microsoft\Windows\CurrentVersion\RenameFiles\Xvbscan,Readme.txt,,"XLSCAN97 Readme.txt"
  81.  
  82. [GenUninstallKey]
  83. ;Reg key that puts entry in Add/Remove files CPL applet dialog
  84. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Xvbscan,"DisplayName",,"%PackageDesc%" 
  85.  
  86. [Win95UninstallKey]
  87. ;call ADVPACK uninstaller on Win95
  88. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Xvbscan,"UninstallString",,"RunDll32 advpack.dll,LaunchINFSection %17%\Xvbscan.inf, Uninstall" 
  89.  
  90. [NTUninstallKey]
  91. ;call ADVPACK uninstaller on NT 4
  92. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Xvbscan,"UninstallString",,"RunDll32 advpack.dll,LaunchINFSection %17%\Xvbscan.inf, Uninstall.NT"  
  93.  
  94. ; begin uninstall logic
  95. [Uninstall]
  96. ;need to specify setupapi.dll on Win95 for LFN support 
  97. RequiredEngine=Setupapi
  98. BeginPrompt=BeginPromptSection
  99. EndPrompt=EndPromptSection
  100. CustomDestination=FileDest
  101. Delfiles=contents,InstalledLFN
  102. Deldirs=RemoveFolder
  103. ;clean up uninstall keys
  104. DelReg=DelRegSection
  105. Cleanup=1
  106.  
  107. [Uninstall.NT]
  108. BeginPrompt=BeginPromptSection
  109. EndPrompt=EndPromptSection
  110. CustomDestination=FileDest
  111. Delfiles=contents,InstalledLFN
  112. Deldirs=RemoveFolder
  113. DelReg=DelRegSection
  114. Cleanup=1
  115.  
  116. [BeginPromptSection]
  117. Prompt="%BeginPrompt%"
  118. ButtonType=YESNO
  119. Title=%PackageName%
  120.  
  121. [EndPromptSection]
  122. Prompt="%EndPrompt%"
  123.  
  124. [RemoveFolder]
  125. %49002%
  126.  
  127. [DelRegSection]
  128. "HKLM","SOFTWARE\Microsoft\Office\8.0\Excel\Xvbscan
  129. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Xvbscan
  130. HKLM,Software\Microsoft\Windows\CurrentVersion\RenameFiles\Xvbscan
  131.  
  132. [SourceDisksNames]
  133. 1 = "Xvbscan",,0
  134.  
  135. [Strings]
  136. PubDir="Library"
  137. PackageName="Microsoft Excel 97 Laroux Virus Scanner"
  138. PackageDesc="Microsoft Excel 97 Laroux Virus Scanner (Remove only)"
  139. FailMsg="You must have Microsoft Excel 97 installed to install this software."
  140.  
  141. ;prompts
  142. BeginPrompt="Are you sure that you want to remove the Microsoft Excel 97 Laroux Virus Scanner?"
  143. EndPrompt="The Microsoft Excel 97 Laroux Virus Scanner was successfully removed."
  144.